export const getOption = (safe) => {
  return {
    labelPosition: 'right',
    labelWidth: 120,
    // menuBtn: true,
    submitBtn: false,
    submitText: '生成标签',
    emptyBtn: false,
    menuPosition: 'right',
    column: [
      {
        label: '旧原材料包装条码',
        prop: 'receiveRecord',
        span: 24,
        labelWidth: 150,
        placeholder: '输入旧原材料包装条码',
        rules: [
          {
            required: true,
            trigger: 'blur',
            validator: '请输入旧原材料包装条码'
          }
        ]
      },
      {
        label: '收料记录',
        prop: 'receiveRecord',
        span: 12,
        type: 'search',
        disabled: true,
        placeholder: '请选择 收料记录',
        rules: [
          {
            required: true,
            trigger: 'submit',
            validator: (rule, value, callback) => {
              callback();
            }
          }
        ],
        appendClick: () => {
          safe.openCommonModal('otherReceiveMoal');
        }
      },
      {
        label: '供应商名称',
        prop: 'vendorName',
        span: 12,
        disabled: true,
        placeholder: '供应商名称'
      },
      {
        label: '物料编码',
        prop: 'partNo',
        span: 12,
        disabled: true,
        placeholder: '请选择 物料编码'
      },
      {
        label: '物料名称',
        prop: 'partName',
        span: 12,
        disabled: true,
        placeholder: '物料名称'
      },
      {
        label: '物料规格',
        prop: 'partModel',
        span: 12,
        disabled: true,
        placeholder: '物料规格'
      },
      {
        label: '收料数量',
        prop: 'receiveQuantity',
        disabled: true,
        span: 12
      },
      {
        label: '生产日期',
        prop: 'vendorDate',
        type: 'date',
        format: 'yyyy-MM-dd',
        valueFormat: 'yyyy-MM-dd',
        disabled: true,
        span: 12
      },
      {
        label: '供应商批次',
        prop: 'vendorLotNo',
        disabled: true,
        span: 12
      },
      {
        label: '原因说明',
        prop: 'description',
        type: 'textarea',
        minRows: 3,
        maxRows: 3,
        span: 12,
        rules: [
          {
            required: true,
            trigger: 'submit',
            message: '请输入原因说明'
          }
        ]
      },
      {
        label: '序列号规则',
        prop: 'sequenceName',
        type: 'search',
        placeholder: '请选择 条码规则',
        span: 12,
        disabled: true,
        rules: [
          {
            required: true,
            trigger: 'submit',
            validator: (rule, value, callback) => {
              callback();
            }
          }
        ],
        appendClick: () => {
          safe.openSerialnoCommonModal();
        }
      }
    ]
  };
};
